package at.fhj.swd.pse.controller;

import javax.annotation.PostConstruct;
import javax.enterprise.inject.Model;
import javax.faces.bean.ManagedBean;
import javax.inject.Inject;

import org.jboss.logging.Logger;

import at.fhj.swd.pse.beans.UserBean;

@Model
@ManagedBean(name = "fileUploadController", eager = true)
public class FileUploadController {

	private static final Logger logger = Logger
			.getLogger(FileUploadController.class);

	@Inject
	private UserBean userBean;

	@PostConstruct
	public void init() {
		logger.info("init FileUploadController");

	}

	public void uploadUserProfileImage() {
		logger.info("uploadUserProfileImage");
		userBean.uploadUserProfileImage();
	}
}